package cn.changeforyou.base.exception;

import cn.changeforyou.base.model.ResultInfo;

/**
 * 该枚举的异常其实是别的模块的, 因为需要公用, 所以到了这儿
 */
public enum CommonResultEnum implements ResultInfo {

    TOKEN_NOT_EXIST(10001, "token不存在"),
    ;

    CommonResultEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    private int code;
    private String message;
    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }

}
